import api from '../index'

export default {
  // 保存条目
  itemByCode: (code: any) => api.get(`/v1/trusteeByCode/${code}`),
  createOrUpdate: (data: any) => api.post('/v1/trusteeItemCreateOrUpdate', data),
  page: (data: any) => api.get('/v1/trustee/page', { params: data }),
  list: (data: any) => api.get('/v1/trustee/list', { params: data }),
  delBatch: (data: any) => api.delete('/v1/trustee/batchByIds', { data }),
  del: (id: any) => api.delete(`/v1/trustee/${id}`),
  syncInfo: (data: any) => api.post('/v1/trusteeSync', data),
}
